package com.itcam.reflect_.msb02;

/**
 * Author:Cammy.Wu
 * Date:2024-05-17
 * Description:
 */
/**
 *
 */
public class Demo {
    public static void main(String[] args) {
        /**
         * Class类的具体实例：
         *      1.类：外部类，内部类
         *      2.接口
         *      3.注解
         *      4.数组
         *      5.基本数据类型
         *      6.void
         */
        Class c1 = Person.class;
        Class c2 = Comparable.class;
        Class c3 = Override.class;

        int[] arr1 = {1, 2, 3};
        Class c4 = arr1.getClass();
        int[] arr2 = {5, 6, 7};
        Class c5 = arr2.getClass();
        System.out.println(c4 == c5); // true,同一维度，同一个元素类型，得到的字节码就是同一个

        Class c6 = int.class;
        Class c7 = void.class;

    }

}
